package com.guoxin.chapter2.synoutasyn;

public class MyThreadB extends Thread {

	private MyList myList;

	public MyThreadB(MyList myList) {
		super();
		this.myList = myList;
	}

	@Override
	public void run() {
		for (int i = 0; i < 100000; i++) {
			myList.add("treadB" + (i + 1));
		}
	}
}
